package com.dsd.datav.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 * @Title: MybatisConfig
 * @ProjectName datav
 * @Description: TODO
 * @date 2023/12/27 00272023/12/27 0027
 */
@Configuration
public class MybatisConfig {
    /**
     * mybatis-plus分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        // 单页最大限制为 mybatis-plus.max-pageSize 条
        paginationInterceptor.setLimit(10000);
        return paginationInterceptor;
    }
}
